﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SportStore.Infrastructure.Abstract;
using System.Web.Security;

namespace SportStore.Infrastructure.Concrete
{
    public class FormsAuthProvider : IAuthProvider
    {

        public bool Authenticate(string username, string password)
        {
            bool result = ((username=="admin") && (password=="1111"))?true:false;
            if (result)
            {
                FormsAuthentication.SetAuthCookie(username, false);
            }
            return result;
        }
    }
}